<template>
  <!-- <div class="fanlist">
    <div>{{ index+1 }}</div>
    <div class="userHeader"><img :src="fans.avatar"></div>
    <div class="userName">{{fans.nickName}}</div>
    <div class="userTxt"> 
      <p>业绩：<span>{{fans.performanceMoney}}</span></p>  
      <p>粉丝数：<span>{{fans.teamCount}}</span></p>   
    </div>
  </div> -->
  <div class="ranking">
      <div class="rankingInfo">
        <div v-if="index+1 != 1 && index+1 != 2 && index+1 != 3" class="userPaiHang">{{index+1}}</div>
        <div v-if="index+1 == 1"  class="name1"><img src="/static/images/user/paixuName1.png"></div>
        <div v-if="index+1 == 2" class="name1"><img src="/static/images/user/paixuName2.png"></div>
        <div v-if="index+1 == 3" class="name1"><img src="/static/images/user/paixuName3.png"></div>
        <div class="userHeader"><img :src="fans.avatar"></div>
        <div class="userName">{{fans.nickName}}</div>
        <div v-if="index+1 != 1 && index+1 != 2 && index+1 != 3" class="userYeji">{{ money }}</div>
        <div v-if="index+1 == 1 || index+1 == 2 || index+1 == 3" class="userYeji1">{{ money }}</div>
        <div v-if="index+1 != 1 && index+1 != 2 && index+1 != 3" class="userFans">{{ fans.teamCount }}</div>
        <div v-if="index+1 == 1 || index+1 == 2 || index+1 == 3" class="userFans1">{{ fans.teamCount }}</div>
      </div>
  </div>
</template>
<script>
export default {
  props:{
    fans:{
      type: Object,
    },
    index:{
      type:Number,
    }
  },
  data(){
      return{
        show:1 
      }
  },
  methods:{  
    showSomeThing(){
      if(this.index+1){
        
      }
    }
  },
  computed:{
    money(){
      return this.fans.performanceMoney.toFixed(2)
    }
  }
}
</script>
<style scoped>
.ranking .rankingInfo {
  display: flex;
  margin-top: 35rpx;
}
.ranking .rankingInfo div {
  width:150rpx;
  height: 76rpx;
  line-height: 76rpx;
  text-align: center;
}
.ranking .rankingInfo .name1 {
  width:56rpx;
  height:58rpx;
  padding-top: 7rpx;
  margin: 0 auto;
}
.ranking .rankingInfo .name1 img{
  width:56rpx;
  height:58rpx;
}
.ranking .rankingInfo .userYeji1 {
  color:#A3D2FB;
}
.ranking .rankingInfo .userFans1 {
  color:#A3D2FB;
}
.ranking .rankingInfo .userHeader {
  width: 76rpx;
  height: 76rpx;
  border-radius: 50%;
  margin:  0 auto;
}
.ranking .rankingInfo .userHeader img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.ranking .rankingInfo .userName {
  font-size:28rpx;
  font-family:Source Han Sans CN;
  font-weight:400;
  color:rgba(18,18,18,1);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
/* .fanlist{
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  height: 134rpx;
  padding: 0 30rpx;
  border-top: 1px solid #DFDFDF;
}
.userHeader{
  width: 76rpx;
  height: 76rpx;
  border-radius: 50%;
}
.userHeader>img{
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.userName{
  font-size: 28rpx;
  color: #000;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
  margin: 0 20rpx;
}
.userTxt{
  font-size: 28rpx;
  color: #ABABAB;
}
.userTxt .span{
  font-size: 28rpx;
  color: #E38A8A;
} */
</style>
